x86: restore x2apic pre-enabled check logic
authorKeir Fraser <keir@xen.org>
Tue, 11 Jan 2011 11:40:50 +0000 (11:40 +0000)
committerKeir Fraser <keir@xen.org>
Tue, 11 Jan 2011 11:40:50 +0000 (11:40 +0000)
commitdb0fe41a146e1e8170fdbe1360a99fe5758f40e2
tree0939f1312e478362d8f8eb319aecece06e1ed746
parent0c138347400b9be2b811f025109c17a9c9397376
x86: restore x2apic pre-enabled check logic

c/s 22475 removed the early checking without replacement, neglecting
the fact that x2apic_enabled must be set early for APIC register
accesses done during second stage ACPI table parsing (rooted at
acpi_boot_init()) to work correctly. Without this, particularly
determination of the boot CPU won't work, resulting in an attempt to
bring up that CPU again as a secondary one (which fails).

Restore the functionality, now calling it from generic_apic_probe().

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/apic.c
xen/arch/x86/genapic/probe.c
xen/arch/x86/genapic/x2apic.c
xen/include/asm-x86/apic.h